﻿using System.Collections.Generic;
using blackhouse.IdentityCms.Data;

namespace blackhouse.IdentityCms.Tests.FakeDbContexts {
    public class FakeTemplateDbContext : ITemplateDbContext {

        #region Fields

// ReSharper disable once InconsistentNaming
        private static readonly List<TemplateData> templates = new List<TemplateData>();

        #endregion

        #region Properties

        public List<TemplateData> Templates {
            get {
                return templates;
            }
        }

        #endregion

        #region Methods

        internal void Reset() {
            templates.Clear();
        }

        public TemplateData[] GetTemplates() {
            return templates.ToArray();
        }

        #endregion

    }
}
